// 这是一个没有返回值的接口，其函数名为run
package liming.tool.runnable;

import liming.tool.file.FileRW;
import liming.tool.log.LogPool;

@FunctionalInterface
public interface NoReturnValueInterface {
    void run() throws Exception;

    default void onException(Exception e) {
        LogPool.log(LogPool.getStackTraceElement(3), FileRW.getStackTrace(e));
    }

    default void onTimeout() {
        LogPool.log(LogPool.getStackTraceElement(3), "运行超时");
    }
}
